#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<malloc.h>
#include<assert.h>
typedef int STDateType;
typedef struct stack {
	int capacity;
	int top;
	int* st;
}stack;
void stackinit(stack*ps);

void stackdestroy(stack* ps);

void stackpush(stack* ps, STDateType x);	

void stackpop(stack* ps);

STDateType stacktop(stack* ps);

STDateType stacksize(stack* ps);

bool stackempty(stack* ps);